package com.example.bili.controller;

import com.example.bili.service.PutcointService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/putcoint")
public class PutcointController {
    @Resource
    private PutcointService putcointService;
    @GetMapping("/add")
    public Object add(@RequestParam int trendId,
                      @RequestParam int userId,
                      @RequestParam int zhuangt){
        return putcointService.add(trendId, userId, zhuangt);
    }
}
